package com.xzy.dao;

import com.xzy.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component(value = "UserMapper")
public interface UserMapper {
    @Select("select * from user where userName=#{userName}")
     User login(String UserName);
    @Select("select * from user where userId=#{userId}")
     User getUser(int userId);
}
